package ACMProble;

import java.io.BufferedInputStream;
import java.util.Scanner;

public class Pro2029 {

	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedInputStream(System.in));
		while(in.hasNext()){
			int n = in.nextInt();
			in.nextLine();
			String[] s = new String[n];
			for(int i=0;i<n;i++){
				s[i] = in.nextLine();
			}
			
			for(int i=0;i<n;i++){
				int len = s[i].length();
				boolean flag = true;
				for(int j=0;j<len/2;j++){
					if(s[i].charAt(j) != s[i].charAt(len-j-1)){
						flag = false;
					}
				}
				if(flag){
					System.out.println("yes");
				}else{
					System.out.println("no");
				}
			}
		}
		in.close();
	}

}
